package com.chance.cc.crawler.development.command.script.stats;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

public class StatsCrawlerScript {
    private static String domianId="stats";
    private static ScriptCommand scriptCommand=new ScriptCommand("192.168.1.215",9599);

    public static void publishCrawlerNodeScript(){
        HttpPage httpPage=scriptCommand.publishCrawlerScript2Consul(domianId);
        System.out.println("发布采集脚本："+httpPage.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}
